# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

# platforms specifies the target platforms
platforms:
  - xeon
{% if ne_hddl_enable == true %}
  - hddl
{% endif %}
{% if inventory_hostname in groups['edgenode_vca_group'] %}
  - vcac-a
{% endif %}

# frameworks specifies the target frameworks
frameworks:
{% for item in _frameworks %}
  - {{ item.name }}
{% endfor %}

# registry specifies the Harbor registry in use
registry: {{ _registry_ip_address }}:{{ _registry_port }}/intel

# servingImage video analytics serving image
servingImage: {{ _va_serving.image }}

# servingPort video analytics serving image
servingPort: {{ _va_serving.port }}

# servingTag video analytics serving image tag
servingTag: {{ _va_serving.tag }}

# sidecarImage video analytics serving sidecar image
sidecarImage: {{ _vas_sidecar.image }}

# sidecarTag video analytics serving sidecar tag
sidecarTag: {{ _vas_sidecar.tag }}

# replicas specifies the number of analytics instances running
replicas: 1

# enable Istio service mesh integration
istioEnabled: {{ ne_istio_enable }}
multiInstances: {{ video_analytics_services_multiinstances }}
{% if  ne_istio_enable == true and video_analytics_services_multiinstances == true %}
instances:
{% for item in _instances %}
  - name: {{ item.name }}
    weight: {{ item.weight }}
{% endfor %}
{% else %}
instances:
  - default
{% endif %}

# proxy settings for vas_gateways
{% if proxy_enable | d(false) %}
proxySettings:
  enabled: true
  http: {{ proxy_http }}
  https: {{ proxy_https }}
  ftp: {{ proxy_ftp }}
  noproxy: {{ proxy_noproxy }}
{% else %}
proxySettings:
  enabled: false
{% endif %}
